  <?php
 function get_userinfo()
 {
	$sql=" select * from wxb_memeber where memeber_id='".trim($_GET["uid"])."' " ;
	//$GLOBALS["ioc"]["
	$result=mysql_query($sql,$GLOBALS["varsx"]["conn"]);
	$GLOBALS["varx"]["sql_login"]=$sql;
	$GLOBALS["varx"]["rzt_loign"]=$result;
	
	$GLOBALS["varsx"]["mysql err"]=mysql_error($GLOBALS["varsx"]["conn"]);
	/*print_r($GLOBALS["varx"]);
	//print_r($GLOBALS["varsx"]);
	die();*/
	dbExceptionCheck($result,$GLOBALS["varsx"]["conn"]);
	$row_nums=  mysql_num_rows( $result ) ;
	$GLOBALS["varx"]["row_nums_login"]=$row_nums;
	// print_r($GLOBALS["varx"]);die();
	if($row_nums==0)
		throw new Exception("err_login:登录数据错误！"); 
		
		$row = mysql_fetch_array($result);
//	$a= array();
//		$a["recommer_id"]=$row["memeber_id"];
//	 	$a["good_id"]=insertGoods();
	//	print_r($GLOBALS["varx"]);
		return json_encode($row);
		//return true;
//		else
//		return false;
	//while($student = mysql_fetch_array($result)) {
//	$row_nums=  mysql_num_rows( $result ) ; 
//	}
	 
 }
 
  ?>